from queue import Queue
import time
q = Queue(maxsize=100)

for i in range(20):
    q.put(i,block=False)
    time.sleep(0.01)

#print(q.get(block=True))

